﻿using System;
using DuckGame01.Duck;

namespace DuckGame01
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            //调用野鸭
            var md = new MallardDuck();
            Console.WriteLine(md.Display() + "#" + md.Swim() + "#" +
                              md.FlyBehavior.Fly() + "#" + md.QuackBehavior.Quack());

            //调用红头鸭
            var rd = new RedHeadDuck();
            Console.WriteLine(rd.Display() + "#" + rd.Swim() + "#" +
                              rd.FlyBehavior.Fly() + "#" + rd.QuackBehavior.Quack());

            //调用木头鸭
            var wd = new WodenDuck();
            Console.WriteLine(wd.Display() + "#" + wd.Swim() + "#" +
                              wd.FlyBehavior.Fly() + "#" + wd.QuackBehavior.Quack());
            //变形金刚鸭子
            var td = new TransFormerDuck();
            Console.WriteLine(td.Display() + "#" + td.Swim() + "#" +
                              td.FlyBehavior.Fly() + "#" + td.QuackBehavior.Quack());
        }
    }
}
